################################################################################
#                         Configuration for Djips                              #
#            Edit and copy content of this file in your settings.py file       #
################################################################################

# Folder where the images are stored on the server.
# Must be the real path, not a relative one.
# It has to be a sub folder of the MEDIA_ROOT folder, to avoid 
# raising SuspiciousOperation errors.
# Example: /var/www/share/images
IMAGES_FOLDER = 'photos/'

# List of extension that can be used for images.
IMAGES_EXTENSIONS = ['png', 'gif', 'jpg', 'jpeg', 'JPG']

# An expression used to find thumbnails from the original file.
# If THUMNBAIL_EXP equals '%(name)s_mini.%(extension)s', the file
# 'example.jpg' will have for thumnbail 'example_mini.jpg'
# You can use it to seek in sub folders, for example
# 'mini/%(name)s.%(extension)' will find thumnbails in the sub folder
# mini.
THUMBNAIL_EXP = '%(name)s_mini.%(extension)s'

# URL used to access administration interface.
ADMIN_BASE_URL = 'djips'

################################################################################
#                        DO NOT EDIT BELOW THIS LINE                           #
#                 (unless you really know what you're doing)                   #
################################################################################

# The folder where images are stored
IMAGES_ROOT_FOLDER = MEDIA_ROOT + IMAGES_FOLDER

# The url of the images
IMAGES_ROOT_URL = MEDIA_URL + IMAGES_FOLDER

# The admin URL on server side. Mainly usefull when you use proxying tools
# like Nginx. For example, your proxy can proxy http://admin.yourdomain.com
# to http://localhost:8080/djips/.
# In this case, /djips will be the ADMIN_SERVERSIDE_URL (it is the url
# that sees Django)
ADMIN_SERVERSIDE_URL = ADMIN_BASE_URL
